package com.edu.schoolforum.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

/**
 * @author tao
 * @date 2021/8/11 17:18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Validated
public class UpdatePasswordRequestDto {
    @NotNull(message = "传入的用户不能为空")
    private String name;
    @NotNull(message = "旧密码不能为空")
    private String oldPassword;
    @NotNull(message = "新密码不能为空")
    private String newPassword;
}
